package com.kk.score.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @author KK
 * @email 409592048@qq.com
 * @date 2022-11-02 12:28:00
 */
@Data
@NoArgsConstructor
@TableName("push")
public class PushEntity extends SuperEntity<PushEntity> {
    private static final long serialVersionUID = 1L;

    /**
     * 年份
     */
    private String year;

    /**
     * 部门uid
     */
    private String departmentUid;

    /**
     * 报告uid
     */
    private String reportUid;

    /**
     * 平均分
     */
    private Double average;


    /**
     * 开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    /**
     * 结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    /**
     * 文件名
     */
    @TableField(exist = false)
    private String fileName;

}
